<?php
/**
 * FilterConst.php class file.
 * @author wudg <544038230@qq.com>
 * @date 2021/1/17- 下午4:16
 */

namespace common\constants;


class FilterConst
{

    public static function transShipmentSecond(int $limitSecond)
    {
        $oneDaySecond = 86400;
        $second = $oneDaySecond*2;
        switch ($limitSecond)
        {
            case 1:
                $second = $oneDaySecond;
                break;
            case 2:
                $second = $oneDaySecond*2;
                break;
            case 3:
                $second = $oneDaySecond*3;
                break;
            case 4:
                $second = $oneDaySecond*5;
                break;
            case 5:
                $second = $oneDaySecond*7;
                break;
            case 6:
                $second = $oneDaySecond*8;
                break;
            case 7:
                $second = $oneDaySecond*15;
                break;
            case 8:
                $second = $oneDaySecond*20;
                break;
            case 9:
                $second = $oneDaySecond*30;
                break;
            case 10:
                $second = $oneDaySecond*90;
                break;
        }
        return $second;
    }
}